package com.gzist.elderlyserviceplatform.entity.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;


/**
 * chat响应体封装
 */
@Data
public class ChatResponse {
    @JsonProperty("id")
    private String id; // 确保字段名与 JSON 中的字段名一致

    @JsonProperty("choices")
    private List<Choice> choices;

    @Data
    public static class Choice {
        @JsonProperty("delta")
        private Delta delta;
    }

    @Data
    public static class Delta {
        @JsonProperty("content")
        private String content;
    }
}